home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Mac Game Programming Gurus / TricksOfTheMacGameProgrammingGurus.iso / More Source / Libraries / VideoToolbox 95.04.18 / VideoToolboxSources / Pre-compiled headers / VideoToolbox.pch < prev   
Encoding:
Text File  |  1995-04-07  |  2.7 KB  |  78 lines  |  [TEXT/MMCC]

  1. /*
  2. VideoToolbox.pch
  3.  
  4. Use this Metrowerks CodeWarrior 5 file to create/update the pre-compiled version
  5. of the VideoToolbox.h header. (VideoToolbox.pch won't work with THINK C; use
  6. VideoToolbox.c instead.) Adding VideoToolbox.pch to your project will cause the
  7. appropriate VideoToolbox pre-compiled header to be created or updated, if
  8. necessary, automatically. You must still write the name of the correct
  9. pre-compiled header into the prefix line of your project's "Language"
  10. Preference.
  11.  
  12. VideoToolbox.pch works only with CodeWarrior, but is more automated than
  13. VideoToolbox.c. It will automatically generate the correct file name for the
  14. precompiled header and store it in the right place. If you include this file in
  15. your project, CodeWarrior will automatically determine when the precompiled
  16. header is stale and will rebuild it automatically. Unfortunately, in CodeWarrior
  17. 5 and 5.5, the compiler is a bit too gung ho and always re-precompiles when you next
  18. "Make" your project after "Remove Binaries", which is a big waste of time.
  19.  
  20. All the pre-compiled headers should be stored in
  21. "VideoToolbox:VideoToolboxSources:Precompiled headers". Here's my naming
  22. convention for pre-compiled headers:
  23. "VideoToolbox.pre" = THINK C, 68k, 2-byte int, "universal" floating point (works w or w/o 8881 fpu).
  24. "VideoToolbox.68k.4i.f.pre" = CodeWarrior, 68k, 4-byte int, 12-byte double for 8881.
  25. "VideoToolbox.68k.4i.pre" = CodeWarrior, 68k, 4-byte int, 10-byte double for no fpu.
  26. "VideoToolbox.ppc.pre" = CodeWarrior, PowerPC, necessarily 4-byte int and 8-byte double.
  27.  
  28. NOTE:
  29. The __option() feature was new to CodeWarrior 5 and did not work properly: it
  30. always returned false. It seems to work fine in CW5.5.
  31.  
  32. HISTORY:
  33. 1/6/95 dgp created it.
  34. 1/16/95 dgp expanded the documentation above
  35. */
  36.  
  37. #pragma check_header_flags on
  38.  
  39. #ifdef powerc
  40.     #if !__option(mpwc_newline)
  41.         #pragma precompile_target "VideoToolbox.ppc.pre"
  42.     #else
  43.         #pragma precompile_target "VideoToolbox.ppc.N.pre"
  44.     #endif
  45. #else
  46.     #if !__option(mpwc_newline)
  47.         #if __fourbyteints__
  48.             #if __MC68881__
  49.                 #pragma precompile_target "VideoToolbox.68k.4i.f.pre"
  50.             #else
  51.                 #pragma precompile_target "VideoToolbox.68k.4i.pre"
  52.             #endif
  53.         #else
  54.             #if __MC68881__
  55.                 #pragma precompile_target "VideoToolbox.68k.2i.f.pre"
  56.             #else
  57.                 #pragma precompile_target "VideoToolbox.68k.2i.pre"
  58.             #endif
  59.         #endif
  60.     #else
  61.         #if __fourbyteints__
  62.             #if __MC68881__
  63.                 #pragma precompile_target "VideoToolbox.68k.N.4i.f.pre"
  64.             #else
  65.                 #pragma precompile_target "VideoToolbox.68k.N.4i.pre"
  66.             #endif
  67.         #else
  68.             #if __MC68881__
  69.                 #pragma precompile_target "VideoToolbox.68k.N.2i.f.pre"
  70.             #else
  71.                 #pragma precompile_target "VideoToolbox.68k.N.2i.pre"
  72.             #endif
  73.         #endif
  74.     #endif
  75. #endif
  76.  
  77. #include "VideoToolbox.h"
  78.